Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update logic to handle calendar WRITE/FULL_ACCESS instead of READ/FULL_ACCESS #1194

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

JeroenWeener
Copy link
Contributor

The calendar permission has been split into read-only and full access, as this split can be facilitated by Android's read/write split and iOS's read/full-access split. However, it turns out that iOS's calendar permissions are split in write/full-access instead. Therefore, the new calendar split for the app-facing package will be write-only and full access.

Pre-launch Checklist

  • I made sure the project builds.
  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.
  • I updated CHANGELOG.md to add a description of the change.
  • I updated/added relevant documentation (doc comments with ///).
  • I rebased onto main.
  • I added new tests to check the change I am making, or this PR does not need tests.
  • I made sure all existing and new tests are passing.
  • I ran dart format . and committed any changes.
  • I ran flutter analyze and fixed any errors.

@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
...andler_platform_interface/lib/src/permissions.dart 91.66% <ø> (ø)

📢 Thoughts on this report? Let us know!.

Copy link
Member

@mvanbeusekom mvanbeusekom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except for one small little remark and I think the branch should be updated with the latest main.

// Deny CALENDAR_FULL_ACCESS permission if manifest is not listing both read- and write permissions.
// Otherwise, we will only ask for READ permission and think full access is granted.
// Deny CALENDAR_FULL_ACCESS permission if manifest is not listing both write- and read permissions.
// Otherwise, we will only ask for WRITE permission and think full access is granted.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this sentence, upon first read this is a bit confusing and I think the first sentence in the comment already explains enough.

Copy link
Member

@mvanbeusekom mvanbeusekom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JeroenWeener JeroenWeener merged commit d6a4a36 into Baseflow:main Oct 17, 2023
@JeroenWeener JeroenWeener deleted the enhancement/1182-2 branch October 17, 2023 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants